using Microsoft.SqlServer.Management.Sdk.Sfc;
using System;
using System.ComponentModel;

namespace Microsoft.SqlServer.Management.SqlManagerUI
{
	[LocalizedPropertyResources("Microsoft.SqlServer.Management.SqlManagerUI.GenScriptWizSR"), TypeConverter(typeof(LocalizableTypeConverter))]
	internal sealed class GenWizTransferOptions : GenWizOptionsBase
	{
		private bool scriptDatabaseCreate;

		[DisplayCategoryKey("General"), DisplayDescriptionKey("genreatescriptdatabasecreate"), DisplayNameKey("ScriptDatabaseCreate"), Browsable(false)]
		public bool ScriptDatabaseCreate
		{
			get
			{
				return this.scriptDatabaseCreate;
			}
			set
			{
				this.scriptDatabaseCreate = value;
				if (this.scriptDatabaseCreate)
				{
					base.ScriptUseDatabase = true;
				}
			}
		}

		public GenWizTransferOptions(int version) : base(version)
		{
			base.GenerateScriptForDependentObjects = true;
			base.ScriptIndexes = true;
		}

		public GenWizTransferOptions(int version, GenWizOptionsBase options) : this(version)
		{
			if (options != null)
			{
				base.LoadOptionBase(options);
			}
		}
	}
}
